Skip to content

Conversation

shivakunv
Copy link
Contributor

@shivakunv shivakunv commented Oct 5, 2025

Issue: https://github.com/NVIDIA/gpu-driver-container/issues/169

we are providing an option for users to specify GOLANG_VERSION.

When using := (init variable , will discard supplied variable before make), it does not take variables passed before the make command (e.g., GOLANG_VERSION make ).

Instead, users need to specify it like this: make GOLANG_VERSION=..., e.g.
VGPU_GUEST_DRIVER_VERSION=${VGPU_DRIVER_VERSION} IMAGE_NAME=${PRIVATE_REGISTRY}/driver make push-vgpuguest-${OS_TAG} GOLANG_VERSION=${GOLANG_VERSION}

which differs from the command

VGPU_GUEST_DRIVER_VERSION=${VGPU_DRIVER_VERSION} IMAGE_NAME=${PRIVATE_REGISTRY}/driver GOLANG_VERSION=${GOLANG_VERSION} make push-vgpuguest-${OS_TAG}

Now, with ?= both command styles will work.
Final command will be:-
VGPU_GUEST_DRIVER_VERSION=${VGPU_DRIVER_VERSION} IMAGE_NAME=${PRIVATE_REGISTRY}/driver GOLANG_VERSION=${GOLANG_VERSION} make push-vgpuguest-${OS_TAG}

@shivakunv shivakunv self-assigned this Oct 5, 2025
@tariq1890
Copy link
Contributor

@shivakunv I don't understand the reason for this change. Can you please provide the context in the PR description

@shivakunv
Copy link
Contributor Author

@shivakunv I don't understand the reason for this change. Can you please provide the context in the PR description

updated the description

@shivakunv shivakunv force-pushed the updatecudagoversion branch from 60dc0ac to 44e848a Compare October 8, 2025 18:28
@tariq1890
Copy link
Contributor

For the CUDA version, we missed it for vgpu-guest driver earlier.

We no longer use the ${CUDA_VERSION} build arg. The CUDA base image that we use is referenced explicitly without any variables in the Dockerfile. We have done this to enable dependabot bumps of the cuda base image version

@shivakunv shivakunv changed the title Update base cuda and go runtime versions Update go runtime versions Oct 9, 2025
Signed-off-by: Shiva Kumar (SW-CLOUD) <shivaku@nvidia.com>
@shivakunv shivakunv force-pushed the updatecudagoversion branch from 44e848a to 3b9de99 Compare October 9, 2025 02:43
@shivakunv
Copy link
Contributor Author

shivakunv commented Oct 9, 2025

For the CUDA version, we missed it for vgpu-guest driver earlier.

We no longer use the ${CUDA_VERSION} build arg. The CUDA base image that we use is referenced explicitly without any variables in the Dockerfile. We have done this to enable dependabot bumps of the cuda base image version

removed CUDA_VERSION and updated the description.
I'll update the vgpu docs once this PR merged to main

@shivakunv
Copy link
Contributor Author

@tariq1890 PTAL

@tariq1890
Copy link
Contributor

LGTM. I am okay to merge this if @cdesiniotis also approves

@cdesiniotis
Copy link
Contributor

I am okay with this change, but users should not have to set the GOLANG_VERSION or CUDA_VERSION as build arguments -- if this is present in our documentation we should remove it.

@shivakunv
Copy link
Contributor Author

GOLANG_VERSION

removed from the cloud-native-docs:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants